﻿namespace DeltaGroup.WheelOfJeopardy.Model
{
    using System;
    using System.Xml.Serialization;

    /// <summary>
    /// Created to prevent breaking xml serializer typedef
    /// </summary>
    public class ConstructableSynonym : Synonym
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ConstructableSynonym"/> class.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <param name="alternate">The alternate.</param>
        public ConstructableSynonym(string token, string alternate)
        {
            Token = token;
            Alternate = alternate;
        }

        #endregion Constructors
    }

    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class Synonym
    {
        #region Properties

        /// <summary>
        /// Gets or sets the alternate.
        /// </summary>
        /// <value>The alternate.</value>
        [XmlAttribute]
        public string Alternate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the token.
        /// </summary>
        /// <value>The token.</value>
        [XmlAttribute]
        public string Token
        {
            get;
            set;
        }

        #endregion Properties
    }
}